%h2{:class=>"content_header"}
  =t(:campaign_participate_title, :campaign_name=>@campaign.name)
.content_container
  -if user_participating_in_any_campaign?
    .user_info_zone
      =t(:campaign_participating_in_other, :other_name=>@current_user.active_campaign.name, :other_points=>@current_user.active_user_campaign.points)
      
  .campaign_description
    %p
      =link_to t(:campaign_see_others), campaigns_url
    %p
      =image_tag(@campaign.campaign_image.url(:medium), :class=>"left_image")
      =@campaign.description 
      
  .campaign_duration
    %p
      =t(:campaign_valid_dates, :start_date=>l(@campaign.start_date.to_date, :format=>:long), :end_date=>l(@campaign.end_date.to_date, :format=>:long))
    %p
      -if @campaign.participant_count == 1
        =t(:campaign_participant, :participant_count=>@campaign.participant_count)
      -else
        =t(:campaign_participants, :participant_count=>@campaign.participant_count)
      =link_to t(:campaign_see_participants), participants_campaign_url(@campaign)
      
  .participate_form 
    
    
    -form_tag :action=>"join", :method=>:post do
      -if !@current_user.is_email_set
        .div
          =t(:campaign_why_we_need_your_email)
        .div
          =label_tag :email, t(:campaign_email_required)
          =text_field_tag :email, @email
      =check_box_tag :accept_terms, "1", @accept_terms    
      =label_tag :accept_terms, t(:campaign_read_and_accept_terms)
      .div
        =link_to @campaign.campaign_tos_page.title, page_permalink_url(@campaign.campaign_tos_page.permalink)  

      .div
        =submit_tag t(:campaign_join_now_short)